package cn.cvs.dao.impl;

import cn.cvs.dao.SysSupplierMapper;
import cn.cvs.pojo.Supplier;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class SysSupplierMapperImpl extends SqlSessionDaoSupport implements SysSupplierMapper{
    private SqlSessionTemplate sqlSessionTemplate;

    @Override
    public List<Supplier> selectSupplier(Supplier supplier) {
        return this.getSqlSession().selectList("cn.cvs.dao.SysSupplierMapper.selectSupplier",supplier);
    }


    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }
}
